﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_GetStaffIDByRealName]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_GetStaffIDByRealName];
GO
CREATE PROCEDURE [dbo].[sproc_GetStaffIDByRealName]
@realname nvarchar(100)
AS
    SELECT staff_ID FROM UDS_STAFF WHERE REALNAME=@realname